package cn.iocoder.yudao.module.call.controller.admin.agent.vo;

import cn.iocoder.yudao.framework.common.validation.IDCard;
import cn.iocoder.yudao.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "呼叫中心 - 坐席新增/修改 Request VO")
@Data
public class AgentSaveReqVO {

    @Schema(description = "坐席编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8382")
    private Long id;

    @Schema(description = "坐席工号")
    private String agentNumber;

    @Schema(description = "外呼手机", requiredMode = Schema.RequiredMode.REQUIRED)
    @Mobile
    private String telephone;

    @Schema(description = "真实姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String realName;

    @Schema(description = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @IDCard
    private String idNumber;

    @Schema(description = "坐席登录密码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

    @Schema(description = "班组编号", example = "25762")
    private Long groupId;

    @Schema(description = "第二班组编号", example = "25762")
    private Long secGroupId;

    @Schema(description = "负责人编号", example = "29140")
    private Long ownerUserId;

    @Schema(description = "有效期", example = "29140")
    @NotNull(message = "有效期不能为空")
    private Integer expireTime;

    private LocalDateTime expireAt;

    /**
     * 坐席优先级
     */
    private Integer priorityAgent;

}